﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderReView.aspx.cs" Inherits="Home_OrderReView" %>

<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <!--#include file="~/Config/ShoppingName.txt" -->
    </title>
    <script type="text/javascript" src="/JsBase/jquery.js"></script>
    <link href="/styles/common.css" rel="stylesheet" type="text/css" />
    <link href="/styles/common_head_footer.css" rel="stylesheet" type="text/css" />
    <link href="/styles/order.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .infodiv
        {
            width: 90%;
            margin: 25px auto;
            border-bottom: 1px solid #B5CDFF;
        }
        .infodiv .title
        {
            font-size: 16px;
            font-weight: bold;
            color: #333;
        }
        .infodiv .orderinfo
        {
            margin-left: 35px;
            margin-top: 10px;
            margin-bottom: 10px;
        }
        
        .infodiv .orderinfo .divrow
        {
            height: 28px;
            line-height: 28px;
            color: #333;
        }
        .infodiv .modify
        {
            font-size: 12px;
            color: blue;
            font-weight: normal;
        }
        .infodiv dd, dt
        {
            float: left;
        }
        .divbtn
        {
            float: right;
            margin: 20px 30px;
        }
    </style>
</head>
<body>
    <!--#include file="~/Public/shoppingcarttop.shtml" -->
    <!--head start-->
    <div class="head">
        <div class="headLeft">
            <a href="/index.aspx">
                <img src="/images/u290_original.png" alt="点客123" border="0" /></a></div>
        <div class="headCenter">
            <img src="/images/u24_original.png" />
        </div>
    </div>
    <!--head end-->
    <!--content start-->
    <div id="content">
        <!--contentLeft start-->
        <div class="divshowshoppingCart">
            <table class="tableshoppingcart" cellpadding="0" cellspacing="2">
                <tr>
                    <td class="tdhead" style="background: #B5CDFF;">
                        &nbsp;&nbsp;订单信息
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="infodiv" id="divaddressU" style="display: none;">
                        </div>
                        <div id="divReciveInfo" class="infodiv">
                            <div class="title">
                                收货人信息
                            </div>
                            <div class="orderinfo">
                                <div class="divrow">
                                    <dl>
                                        <dt>收货人姓名：</dt>
                                        <dd>
                                            <%=_orderInfo.Order.ReceiverName%>
                                        </dd>
                                    </dl>
                                </div>
                                <div class="divrow">
                                    <dl>
                                        <dt>地 址：</dt>
                                        <dd>
                                            <%=_orderInfo.Order.ReceiverAddress%>
                                        </dd>
                                    </dl>
                                </div>
                                <div class="divrow">
                                    <dl>
                                        <dt>手机号码：</dt>
                                        <dd>
                                            <%=_orderInfo.Order.ReceiverMobile%>
                                        </dd>
                                    </dl>
                                </div>
                                <div class="divrow">
                                    <dl>
                                        <dt>固定电话：</dt>
                                        <dd>
                                            <%=_orderInfo.Order.ReceiverPhone%>
                                        </dd>
                                    </dl>
                                </div>
                                <div class="divrow">
                                    <dl>
                                        <dt>邮政编码：</dt>
                                        <dd>
                                            <%=_orderInfo.Order.ReceiverZipCode%>
                                        </dd>
                                    </dl>
                                </div>
                            </div>
                        </div>
                        <div id="divPayInfo" class="infodiv">
                            <div class="title">
                                支付及配送方式
                            </div>
                            <div class="orderinfo">
                                支付方式：<%=_orderInfo.Order.PayMode.ToString() %>
                                <br />
                                配送方式：<%=_orderInfo.Order.SendMode.ToString()%>
                            </div>
                        </div>
                        <div id="divcheck" class="infodiv">
                            <div class="title">
                                发票
                            </div>
                            <div class="orderinfo">
                                <div style="height: 26px; line-height: 26px;">
                                    发票抬头：<%=!string.IsNullOrEmpty(_orderInfo.Order.FaPiao)?_orderInfo.Order.FaPiao:"无" %></div>
                            </div>
                        </div>
                        <div id="divgoodsinfo" class="infodiv">
                            <div class="title">
                                商品清单
                            </div>
                            <div class="orderinfo">
                            <table width="90%" cellpadding="0" cellspacing="1" style="background: #CCCCCC; text-align: center;">
    <tr>
        <td style="background-color: #FFF4D7; height: 26px;">
            商品编号
        </td>
        <td style="background-color: #FFF4D7;">
            商品名称
        </td>
        <td style="background-color: #FFF4D7;">
            点客价
        </td>
        <td style="background-color: #FFF4D7;">
            折扣
        </td>
        <td style="background-color: #FFF4D7;">
            赠送积分
        </td>
        <td style="background-color: #FFF4D7;">
            库存状态
        </td>
        <td style="background-color: #FFF4D7;">
            数量
        </td>
    </tr>
    <%
        for (var i = 0; i < _orderInfo.Lines.Count; i++)
        {
    %>
    <tr>
        <td style="background-color: #fff; height: 26px;">
            <%=_orderInfo.Lines[i].LineInfo.GoodsID%>
        </td>
        <td style="background-color: #fff;">
            <%=_orderInfo.Lines[i].GoodsName%>
        </td>
        <td style="background-color: #fff;">
            <%=_orderInfo.Lines[i].LineInfo.Price.ToString("C2")%>
        </td>
        <td style="background-color: #fff;">
        </td>
        <td style="background-color: #fff;">
            <%=_orderInfo.Lines[i].LineInfo.PresentScores %>
        </td>
        <td style="background-color: #fff;">
        现货
        </td>
        <td style="background-color: #fff;">
            <%=_orderInfo.Lines[i].LineInfo.Quantity %>
        </td>
    </tr>
    <%} %>
</table>
                            </div>
                        </div>
                        <div id="divcoupon" class="infodiv">
                            <div class="title">
                                优惠券
                            </div>
                            <div class="orderinfo">
                                <div style="line-height: 26px;" class="couponinfo">
                                    <%if (_orderInfo.Order.CouponMoney > 0)
                                      { %>
                                    您使用了面值为 <font color="red">
                                        <%=_orderInfo.Order.CouponMoney.ToString("C2")%></font> 的优惠券
                                    <%}
                                      else
                                      {
                                          Response.Write("无");
                                      }
                                        %>
                                </div>
                            </div>
                        </div>
                        <div id="div1" class="infodiv">
                            <div class="title">
                                备注信息
                            </div>
                            <div class="orderinfo">
                                <div style="height: 26px; line-height: 26px;">
                                    备注信息：<%=!string.IsNullOrEmpty(_orderInfo.Order.Remark) ? _orderInfo.Order.Remark : "无"%>
                                </div>
                            </div>
                        </div>
                        <div id="divcalprice" class="infodiv">
                            <div class="title">
                                结算信息
                            </div>
                            <div class="orderinfo">
                               商品总价：<%=(_orderInfo.Order.TotalAmount-_orderInfo.Order.SendFee-_orderInfo.Order.CouponMoney).ToString("C2") %>元;运费：<%=_orderInfo.Order.SendFee.ToString("C2")%>元;使用优惠券：<%=_orderInfo.Order.CouponMoney.ToString("C2") %>元;共计<%=_orderInfo.Order.TotalAmount.ToString("C2") %>元
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!--content end-->
    <!--#include file="~/Public/bottom.shtml" -->
</body>
</html>
